<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			div{
				width: 100px;
				height: 100px;
				background-color: red;
				transition: 1s;
				margin-bottom: 20px;
			}
			/*rotateX() 方法*/
			.p1:hover{
				transform: rotateX(120deg);
				transition: 1s;
			}
			/*rotateY() 方法*/
			.p2:hover{
				transform: rotateY(120deg);
				transition: 1s;
			}
		</style>
	</head>
	<body>
		<!--rotateX() 方法-->
		<div class="p1"></div>
		<!--rotateY() 方法-->
		<div class="p2"></div>
	</body>
</html>